﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Hero.Api.Controllers
{
    [Route("[controller]/[action]")]
    [ApiController]
    public class TestController : ControllerBase
    {
        [HttpGet]
        public string GetString()
        {
            return $"有Token才能请求到信息  这是jwt中写入到httpcontext中的内容:{HttpContext.Items["UserName"]}";
        }
    }
}
